﻿using Dapper;
using IService;
using Microsoft.Data.SqlClient;
using Microsoft.EntityFrameworkCore;
using Model;
using DAL;
using System;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service
{
    public class CJurisdictionService: ICJurisdictionService
    {
        CJurisdictionDal _cj = new CJurisdictionDal();

        public Task<List<CJurisdiction>> CreateMainMenu(List<Jurisdiction> quans, int groupID)
        {
            return _cj.CreateMainMenu(quans, groupID);
        }

        public Task<List<CJurisdiction>> GetMainMenu(int rolesID)
        {
            return _cj.GetMainMenu(rolesID);
        }

        public Task<int> GetRolesIDByUsersID(int uid)
        {
            return _cj.GetRolesIDByUsersID(uid);
        }
    }
}

